package do1.mobo.event;

import do1.mobo.constant.Constant.Command;
import do1.mobo.engine.MoboEngine;
import do1.mobo.engine.MoboEngineInstance;
import do1.mobo.widget.ViewTag;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;

public class ItemClickListenerEvent implements OnItemClickListener
{
	private static ItemClickListenerEvent instance=null;
	
	private ItemClickListenerEvent()
	{
		 
	}
	
	public static ItemClickListenerEvent getInstance()
	{
		if(instance==null)
			instance=new ItemClickListenerEvent();
		
		return instance;
	}
	
	public void onItemClick(AdapterView<?> parent, View view, int position,long id)
	{
		MoboEngine engine=MoboEngineInstance.getInstance();
		engine.HandleEvent(view);
	}
}
